package com.surveyingandmapping;

import org.apache.commons.lang3.StringUtils;
import org.junit.Test;

import java.text.DateFormatSymbols;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Carly rea jepsen on 2016/3/23.
 */

public class test {

    @Test
    public void test(){
        try{
            String s = "2008-09-10 10:20:51";
            SimpleDateFormat dfs = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            Date date = dfs.parse(s);
            System.out.println();
        }catch (ParseException e){
            return;
        }
        return;
    }
}
